package com.example;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.example.new6.R;
import com.example.new6.Test1Activity;
import com.example.test2.Test2Activity;
import com.example.test2.view.DictActivity;

public class TerminalActivity extends AppCompatActivity {
    private TextView OkHttpText;
    private TextView RetrofitText;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_terminal);

        OkHttpText = findViewById(R.id.OkHttp);
        RetrofitText = findViewById(R.id.Retrofit);

        OkHttpText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TerminalActivity.this, Test1Activity.class);
                startActivity(intent);
            }
        });

        RetrofitText.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(TerminalActivity.this, Test2Activity.class);
                startActivity(intent);
            }
        });
    }
}
